package com.zhou.bjgl.bjgl.exception;

public enum BwExceptionEnum {
    NEED_USER_NAME(10001,"用户名不存在"),
    NEED_PASSWORD(10002,"密码不能为空"),
    NEED_TOO_SHORT(10003,"密码长度不能小于8位"),
    NAME_EXISTED(10004,"用户名已存在"),
    INSERT_FAIL(10005,"插入失败"),
    WORN_PASSWORD_OR_USRNAME(10006,"用户名或密码错误"),
    TOLOGIN(10007,"请登录"),
    UPDATE_FAILID(10008,"更新失败"),
    NOT_ADMIN(10009,"您不是管理员"),
    PARAM_NOT_NULL(100010,"参数不能为空"),
    CREATE_FAIL(100011,"新增失败"),
    REQUEST_PARAM_ERROR(100012,"参数错误"),
    DELETE_FAILID(10013,"删除失败"),
    MKDIR_FAILID(10014,"创建文件夹失败"),
    UPLOAD_FAILID(10015,"图片上传失败"),
    IS_NULL(10016,"对象为空"),
    QUERY_FAIL(10017,"查询失败"),
    NO_ENUM(10019,"枚举未找到"),
    CLASS_EXSITED(10020,"班级已存在"),
    NO_RECORD(10021,"记录不存在"),
    NEED_CLASS(10022,"需要班级"),
    NEED_COLLEGE(10023,"需要学院"),
    NO_CLASS(10024,"班级不存在"),
    NO_COLLEGE(10025,"学院不存在"),
    OUT_OF_POSITION(10026,"不在指定位置"),
    CODE_OVERDUE(10027,"课堂码已过期"),
    CODE_NOT_EXIST(10027,"课堂码不存在"),
    ALREADLY_UPLOAD(10028,"已经上传过文件，请先删除文件后，重新上传"),
    NOT_CHOOSE_TASK(10029,"没有选择相应的任务"),
    PACKAGE_FAIL(10030,"打包失败"),
    NO_TOKEN(10031,"Token无效，请重新登录"),
    USER_NOT_EXIST(10032,"用户不存在"),
    ALREADLY_CHECK(10033,"您已经签到"),
    DELETE_FAILED(10034,"删除失败"),
    FILE_NOT_EXIST(10035,"文件不存在"),
    TASK_NOT_EXIST(10036,"上传任务不存在"),
    DOWNLOAD_FILE(10037,"下载失败"),
    EDIT_PASSWORD_FAIL(10038,"修改密码失败"),
    OLD_PASSWORD_EORRO(10039,"原密码不正确"),
    NOT_DISTRIBUTION_CLASS(10040,"您没有分配班级，不能发送通知"),
    NOT_REPEAT_OPERATION(10041,"您已经操作过，如显示不正确，请刷新"),
    NOT_ARRIVED_BACK(10042,"您未到达你设定的返校位置"),
    NO_MSG(10043,"没有信息"),
    ID_IS_NULL(10044,"ID不能未空"),
    ALLOW_ONE_USER(10045,"一个微信只运行绑定一个用户"),
    WE_UER_NULL(10046,"微信用户为空"),
    LOGIN_FAIL(10001,"用户名不存在或密码错误"),
    FIND_FAIL(10050,"查找失败"),
    SYSTEM_EXCEPTION(20001,"系统异常");

    Integer code;
    String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    BwExceptionEnum(int code, String msg) {
        this.code=code;
        this.msg=msg;
}

}
